using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace ParticleSystem.Particles
{
    public class StaticParticleEmitter
    {
        #region Fields
        ParticleSystem particleSystem;
        Vector3 position;
        Vector3 particleVelocity;
        #endregion

        public StaticParticleEmitter(ParticleSystem particleSystem, Vector3 position, Vector3 particleVelocity)
        {
            this.particleSystem = particleSystem;
            this.position = position;
            this.particleVelocity = particleVelocity;
        }

        public void Update(GameTime gameTime)
        {
            float elapsedTime = (float)gameTime.ElapsedGameTime.TotalSeconds;
            particleSystem.AddParticle(position, particleVelocity);
        }
    }
}
